import { defineStore } from "pinia";
import { ref } from "vue";
// 个人信息
export const informationStore = defineStore('information', () => {
    let obj = JSON.parse(localStorage.getItem('user') || '{}')
    let objar = {
        toux: obj.toux,
        nic: obj.nic,
        sex: obj.sex,
        intro: obj.intro,
        cover: obj.cover
    }
    const information = ref(objar)
    return {
        information
    }
})